package com.scm.biz.enums;

public enum FileCategoryEnum {
	PRODUCTION_CONTACT_SALE_FILE("scm_production_pattern-sale_contact_file","大货销售合同"),
	PROOFING_SIZE_FILE("scm_proofing_pattern-size_file","打样尺码文件"),
	PROOFING_MIDDLE_FILE("scm_production_pattern-middle-file","中查文件"),
	PROOFING_LAST_FILE("scm_production_pattern-last-file","尾查文件"),
	ORDER_PATTERN_STYLELABLE("scm_order_pattern-stylelabel","设计款式标签"),
	ORDER_PATTERN_IMAGE("scm_order_pattern-patternimage","设计款式图片"),
	ORDER_PATTERN_TMFILE("scm_order_pattern-tm-file","设计款式图片"),
	CUSTOMER_FILE("scm_customer-attachment_file","客户文件"),
	CUSTOMER_STYLELABLE("scm_customer-style_label","客户风格标签"),
	CUSTOMER_PRODUCT_CATEGORY("scm_customer-product_category","客户产品分类"),
	SAMPLE_IMAGE("scm_sample_store-image","样式图片"),
	SAMPLE_STYLE("scm_sample_store-style","样衣风格标签"),
	SAMPLE_CATEGORY("scm_sample_store-category","样衣分类"),
	FACTORY_REPORT("scm_factory-reprot","工厂报告"),
	FACTORY_CONTRACT("scm_factory-factory_contract","工厂合同"),
	PRODUCTION_CONTRACT_FILE("scm_production_pattern-contract_file","大货合同"),
	PRODUCTION_TM_FILE("scm_production_pattern-tm-file","大货推码表文件");
	String code;
	String name;
	FileCategoryEnum(String code,String name){
		this.code = code;
		this.name = name();
	}
	public String value(){
		return this.code;
	}
	public FileCategoryEnum getCategoryTypeEnum(String code){
		for(FileCategoryEnum categoryTypeEnum:this.values()){
			if(code.equals(categoryTypeEnum.value())){
				return categoryTypeEnum;
			}
		}
		return null;
	}
}
